<template>
  <span></span>
</template>
<script setup lang="ts">
  import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
  import { Modal } from 'ant-design-vue';
  import { h, ref } from 'vue';

  const tableActionRef = ref<any>(null);
  defineExpose({
    show(record: any, tableAction) {
      console.log(record);
      tableActionRef.value = tableAction;
      Modal.confirm({
        title: '提示',
        icon: h(ExclamationCircleOutlined),
        content: '确认删除吗？',
        okText: '确认',
        cancelText: '取消',
        onOk() {
          tableActionRef.value.reload();
        },
      });
    },
  });
</script>
<style lang="less" scoped></style>
